package com.xydtech.workflow.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xydtech.common.annotation.Excel;
import com.xydtech.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 流程版本信息对象 wfl_flowversion
 *
 * @author JHON
 * @date 2021-04-11
 */
public class WflFlowversion extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 版本号 */
    private Long versionId;

    /** 流程号 */
    @Excel(name = "流程号")
    private Long flowId;

    /** 配置进度            0-未配置            1-节点配置            2-审批配置            3-页面配置            4-跳转配置            5-逻辑配置            6-影像配置 */
    @Excel(name = "配置进度            0-未配置            1-节点配置            2-审批配置            3-页面配置            4-跳转配置            5-逻辑配置            6-影像配置")
    private String flowProgress;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private String upTime;

    /** 发布人 */
    @Excel(name = "发布人")
    private Long upUser;

    /** 状态 */
    @Excel(name = "状态")
    private String sts;

    public void setVersionId(Long versionId) {
        this.versionId = versionId;
    }

    public Long getVersionId() {
        return versionId;
    }

    public void setFlowId(Long flowId) {
        this.flowId = flowId;
    }

    public Long getFlowId() {
        return flowId;
    }

    public void setFlowProgress(String flowProgress) {
        this.flowProgress = flowProgress;
    }

    public String getFlowProgress() {
        return flowProgress;
    }

    public void setUpTime(String upTime) {
        this.upTime = upTime;
    }

    public String getUpTime() {
        return upTime;
    }

    public void setUpUser(Long upUser) {
        this.upUser = upUser;
    }

    public Long getUpUser() {
        return upUser;
    }

    public void setSts(String sts) {
        this.sts = sts;
    }

    public String getSts() {
        return sts;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("versionId", getVersionId())
                .append("flowId", getFlowId())
                .append("flowProgress", getFlowProgress())
                .append("upTime", getUpTime())
                .append("upUser", getUpUser())
                .append("sts", getSts())
                .toString();
    }
}
